package letter_grade;

import junit.framework.Assert;
import junit.framework.TestCase;

public class NumericToLetterTest extends TestCase {
	
	public void test1(){
		NumericToLetter n = new NumericToLetter(3.85);
		String str = n.getLetterGrade();
		Assert.assertEquals("A", str);
	}
	
	public void test2(){
		NumericToLetter n = new NumericToLetter(1.7);
		String str = n.getLetterGrade();
		Assert.assertEquals("C-", str);
	}
	public void test3(){
		NumericToLetter n = new NumericToLetter(0);
		String str = n.getLetterGrade();
		Assert.assertEquals("F", str);
	}
	public void test4(){
		NumericToLetter n = new NumericToLetter(-1);
		String str = n.getLetterGrade();
		Assert.assertEquals("Invalid input", str);
	}
}
